package com.larkin.utils.batch;

import com.larkin.utils.config.DemoConfig;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * Created by liujin on 2019/7/8.
 *
 * @description TODO
 */
@Configuration
@EnableAutoConfiguration
@EnableBatchProcessing(modular = true)
@Import({ DemoConfig.class})
public class SpringBatchConfiguration {
//    @Bean
//    public ApplicationContextFactory firstJobContext() {
//        return new GenericApplicationContextFactory(JobConfiguration.class);
//    }
//
//    @Bean
//    public ApplicationContextFactory secondJobContext() {
//        return new GenericApplicationContextFactory(SecondJobConfiguration.class);
//    }
}
